home *** CD-ROM | disk | FTP | other *** search
/ Compendium Deluxe 1 / LSD Compendium Deluxe 1.iso / a / text / manipulation / snap164.lha / minrexx.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-11-30  |  1.7 KB  |  59 lines

  1. /*
  2.  *   Includes for minrexx.c; please refer to that file for
  3.  *   further documentation.
  4.  */
  5. #include <rexx/rxslib.h>
  6.  
  7. #if 0
  8. STRPTR CreateArgstring(char *,long);
  9. void DeleteArgstring(STRPTR);
  10. struct RexxMsg *CreateRexxMsg(struct MsgPort *,char *,char *);
  11. void DeleteRexxMsg(struct RexxMsg *);
  12. #endif
  13.  
  14. #ifdef AZTEC_C
  15. #pragma amicall(RexxSysBase, 0x7e, CreateArgstring(a0,d0))
  16. #pragma amicall(RexxSysBase, 0x84, DeleteArgstring(a0))
  17. #pragma amicall(RexxSysBase, 0x90, CreateRexxMsg(a0,a1,d0))
  18. #pragma amicall(RexxSysBase, 0x96, DeleteRexxMsg(a0))
  19. #endif AZTEC_C
  20.  
  21. #ifdef LATTICE
  22. #pragma libcall RexxSysBase CreateArgstring 7e  802
  23. #pragma libcall RexxSysBase DeleteArgstring 84  801
  24. #pragma libcall RexxSysBase CreateRexxMsg   90 9803
  25. #pragma libcall RexxSysBase DeleteRexxMsg   96  801
  26. #endif LATTICE
  27.  
  28. /*
  29.  *   This is the list of functions we can access.  (Cheap forward
  30.  *   declarations, too.)
  31.  */
  32. long upRexxPort(char * s, struct rexxCommandList * rcl,
  33.         char * exten, int (*uf)() ) ;
  34. void dnRexxPort(void) ;
  35. void dispRexxPort(void) ;
  36. struct RexxMsg *sendRexxCmd() ;
  37. struct RexxMsg *syncRexxCmd(char * s, struct RexxMsg * msg);
  38. struct RexxMsg *asyncRexxCmd(char * s) ;
  39. void replyRexxCmd(register struct RexxMsg *    msg,
  40.           register long         primary,
  41.           register long            secondary,
  42.           register char *        string);
  43. /*
  44.  *   Maximum messages that can be pending, and the return codes
  45.  *   for two bad situations.
  46.  */
  47. #define MAXRXOUTSTANDING (300)
  48. #define RXERRORIMGONE (100)
  49. #define RXERRORNOCMD (30)
  50. /*
  51.  *   This is the association list you build up (statically or
  52.  *   dynamically) that should be terminated with an entry with
  53.  *   NULL for the name . . .
  54.  */
  55. struct rexxCommandList {
  56.    char *name ;
  57.    APTR userdata ;
  58. } ;
  59.